Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat : Implemented ifftshift and test #23882

Closed
wants to merge 32 commits into from

Conversation

VaishnaviMudaliar
Copy link
Contributor

@VaishnaviMudaliar VaishnaviMudaliar commented Sep 18, 2023

PR Description

Related Issue

Close #23801

Checklist

  • Did you add a function?
  • Did you add the tests?
  • Did you run your tests and are your tests passing?
  • Did pre-commit not fail on any check?
  • Did you follow the steps we provided?

Socials:

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Compliance Checks

Thank you for your Pull Request! We have run several checks on this pull request in order to make sure it's suitable for merging into this project. The results are listed in the following section.

Conventional Commit PR Title

In order to be considered for merging, the pull request title must match the specification in conventional commits. You can edit the title in order for this check to pass.
Most often, our PR titles are something like one of these:

  • docs: correct typo in README
  • feat: implement dark mode"
  • fix: correct remove button behavior

Linting Errors

  • Found type "null", must be one of "feat","fix","docs","style","refactor","perf","test","build","ci","chore","revert"
  • No subject found

@ivy-leaves ivy-leaves added the JAX Frontend Developing the JAX Frontend, checklist triggered by commenting add_frontend_checklist label Sep 18, 2023
@VaishnaviMudaliar VaishnaviMudaliar changed the title added ifftshift and test Implemented ifftshift and test Sep 19, 2023
@VaishnaviMudaliar VaishnaviMudaliar changed the title Implemented ifftshift and test feat : Implemented ifftshift and test Sep 19, 2023
@VaishnaviMudaliar
Copy link
Contributor Author

Hey @jshepherd01 , please do review my PR and let me know if any changes required, thanks 😊

@jshepherd01
Copy link
Contributor

Hi @VaishnaviMudaliar, sorry about this but I think I shouldn't have been assigned to this issue as my contract at Ivy finished at the end of last week. As such, I'm unassigning myself now and hopefully someone else will be along shortly to review this properly.

@jshepherd01 jshepherd01 removed their assignment Sep 19, 2023
@VaishnaviMudaliar
Copy link
Contributor Author

Hi @VaishnaviMudaliar, sorry about this but I think I shouldn't have been assigned to this issue as my contract at Ivy finished at the end of last week. As such, I'm unassigning myself now and hopefully someone else will be along shortly to review this properly.

Alright, thanks anyway ☺️

@VaishnaviMudaliar
Copy link
Contributor Author

Hey @bipinKrishnan please do review my PR and let me know about the further changes needed, thanks!😊

@bipinKrishnan
Copy link
Contributor

Hey @VaishnaviMudaliar, could you please fix the conflicts and push again?

@VaishnaviMudaliar
Copy link
Contributor Author

I'll do it right away

@VaishnaviMudaliar
Copy link
Contributor Author

Hey @bipinKrishnan , i have resolved the conflicts, please have a look and let me know if further changes are required, thanks! 😊

@bipinKrishnan
Copy link
Contributor

Hey @VaishnaviMudaliar, seems like you've rebased incorrectly. You could see that the test implementation you added is missing some code. Can you please correct it? Let me know if you face any issues. Thanks!

dtype_and_x, backend_fw, frontend, test_flags, fn_tree, on_device
):
input_dtype, arr = dtype_and_x

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test function is missing some code here

helpers.test_frontend_function(
input_dtypes=input_dtype,
frontend=frontend,
backend_to_test=backend_fw,
test_flags=test_flags,
fn_tree=fn_tree,
on_device=on_device,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are not related to the function you added, so you could undo these changes.

@VaishnaviMudaliar
Copy link
Contributor Author

@bipinKrishnan I have added the missing code and made the changes, please do check and let me know 🙂

@bipinKrishnan
Copy link
Contributor

Hey, still there are same changes not related to your changes, you could check this in the "Files changed" tab at the top, please undo these. Also, you should install pre-commit in your system so that the linting is done automatically before pushing the code, currently the lint tests are failing due to not doing this. Thanks!

@VaishnaviMudaliar
Copy link
Contributor Author

VaishnaviMudaliar commented Sep 30, 2023

Hi! @bipinKrishnan , I have run the pre-commit and also removed the unwanted code, please let me know if anymore changes are needed . Thanks!

@VaishnaviMudaliar
Copy link
Contributor Author

Hey @bipinKrishnan , while making the above mentioned changes , I had accidentally deleted the code for an already implemented function , I apologize for doing so , however , i have added the code back . I would request you to please check the PR . Thanks for your patience :)

@VaishnaviMudaliar
Copy link
Contributor Author

Hey @bipinKrishnan , please do review the PR for the made changes, thanks!😊


# If axes is None, shift all axes
if axes is None:
axes = list(range(ivy.ndims(x)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests are failing because ivy doesn't have ndims attribute.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I missed that while reading the docs , however , I have changed it to len(shape)

VaishnaviMudaliar and others added 4 commits October 12, 2023 12:05
Since Ivy's documentation does not have function 'ndim' , i am using the length of the shape instead.
@VaishnaviMudaliar
Copy link
Contributor Author

Hey @bipinKrishnan , I have changed the code as suggested, I would request you to please review the PR, thanks!

@VaishnaviMudaliar
Copy link
Contributor Author

Hey @bipinKrishnan , please do review the PR for the changes made! Thank you!😊

@ivy-seed
Copy link

ivy-seed commented Feb 2, 2024

This PR has been labelled as stale because it has been inactive for more than 7 days. If you would like to continue working on this PR, then please add another comment or this PR will be closed in 7 days.

@ivy-seed ivy-seed added the Stale label Feb 2, 2024
@VaishnaviMudaliar
Copy link
Contributor Author

@joaozenobio please review the PR , its been very long since i last requested , thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JAX Frontend Developing the JAX Frontend, checklist triggered by commenting add_frontend_checklist Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ifftshift
8 participants